#ifndef __ADC
#define __ADC

#include <Defs.h>

#define ADCInit(); ADCR = 0x01016600; //Initialize ADC
#define ADCStop(); ADCR &= 0xFFDFFFFF; //ADC channel off (PDN = 0) 

extern void ADCStart(byte channel); 	//ADC channel on
extern ushort ADCRead(void);	//Read last value from ADC data register

#endif // __ADC
